<div class="row-content am-cf">
    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
        <div class="widget am-cf">
            <div class="widget-head am-cf">
                <div class="widget-title  am-cf">观看广告</div>
                <b style="float: right; margin-top:10px;"><span id="shengyu">{$value}</span>/{$ad_view}</b>
                <p></p>
                <p></p>
                <div class="am-progress am-progress-striped am-progress-sm am-active " style="width: 95%;">
                    <div class="am-progress-bar am-progress-bar-secondary" id="progress"></div>
                </div>
                <div style="width: 100%;float: right;">
                    <button type="button" class="am-btn am-btn-primary" style="float: right;" id="nextad">下一条</button>
                </div>
            </div>
            <div class="widget-body  am-fr">
                <div class="am-u-sm-12">
                   
                </div>
                <div id="adinfo" >
                  
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/html" id="adtpl">
    <% if (info.type=='imagetext') { %> 
        <h1 style="text-align: center;"><%= info.title %></h1>
            <img src="<%= info.images %>" style="margin:0 auto;display:block; width: 50%;"/>
            <p>
                <%= info.content %>
            </p>
    <% } else if (info.type=='link') { %>
        <p style="text-align: center;">观看地址:<b><%= info.content %></b></p>
        <div style="text-align: center;height:">
            <iframe src="<%= info.content %>" width="100%" height="800px;" frameborder="0" scrolling="anto"  >
                 您的浏览器不支持iframe，请升级
            </iframe>
        </div>
    <% } %>
</script>